package com.lap.auth.domain.role.valueobject;

import com.lap.framework.common.enums.BaseEnum;
import lombok.Getter;

@Getter
public enum DataScopeType implements BaseEnum<Integer> {
  SELF(1, "本人"),
  DEPT(2, "本部门"),
  DEPT_AND_CHILD(3, "本部门及子部门"),
  CUSTOM(4, "指定部门"),
  ALL(5, "所有数据"),
  ;

  private final Integer code;
  private final String labelZh;

  DataScopeType(Integer code, String labelZh) {
    this.code = code;
    this.labelZh = labelZh;
  }
}
